export default {
    install: (app, options) => {
        // 编写插件代码
        app.config.globalProperties.$translate = key => {
            return key.split('.').reduce((o, i) => { if (o) return o[i] }, options)
        }
    }
}